using SCG.General;
using System;

namespace SCG.SolarVengeanceEngine.BrainInfo
{
    public class WormholeInfo : SVObjectInfo
    {
        public WormholeInfo(Wormhole wh)
            : base(wh)
        {
            _wormhole = wh;
        }

        //Is the destination known
        public bool DestinationKnown
        {
            get
            {
                return _wormhole.TraveledBy[Brain.ThisPlayer];
            }
        }

        //The destination (if known)
        public SCGPoint Destination
        {
            get
            {
                if (DestinationKnown)
                    return _wormhole.Destination;
                else
                    return new SCGPoint(-1, -1);
            }
        }

        //private members
        internal Wormhole _wormhole;
    }
}
